﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

using Admin.NET.Core;
namespace Admin.NET.Application.Entity;

/// <summary>
/// 嘉里车辆订单信息
/// </summary>
[SugarTable("kerrypluscarorders","嘉里车辆订单信息")]
[Tenant("1300000000001")]
public class Kerrypluscarorder  : EntityBase
{
    /// <summary>
    /// 订单ID
    /// </summary>
    [SugarColumn(ColumnName = "OrderId", ColumnDescription = "订单ID", Length = 200)]
    public string? OrderId { get; set; }
    
    /// <summary>
    /// 订单No
    /// </summary>
    [SugarColumn(ColumnName = "OrderNo", ColumnDescription = "订单No", Length = 200)]
    public string? OrderNo { get; set; }
    
    /// <summary>
    /// 用户ID
    /// </summary>
    [SugarColumn(ColumnName = "UserId", ColumnDescription = "用户ID", Length = 200)]
    public string? UserId { get; set; }
    
    /// <summary>
    /// 车牌
    /// </summary>
    [SugarColumn(ColumnName = "CarNo", ColumnDescription = "车牌", Length = 200)]
    public string? CarNo { get; set; }
    
    /// <summary>
    /// 自动缴费
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "IsAutoPay", ColumnDescription = "自动缴费")]
    public bool IsAutoPay { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "State", ColumnDescription = "状态")]
    public int State { get; set; }
    
    /// <summary>
    /// 入场时间
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "EnterTime", ColumnDescription = "入场时间")]
    public DateTime EnterTime { get; set; }
    
    /// <summary>
    /// 支付时间
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "PayTime", ColumnDescription = "支付时间")]
    public DateTime PayTime { get; set; }
    
    /// <summary>
    /// 缴费金额
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "TotalFeeInYuan", ColumnDescription = "缴费金额", Length = 65, DecimalDigits=30 )]
    public decimal TotalFeeInYuan { get; set; }
    
    /// <summary>
    /// 订单类型
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "OrderType", ColumnDescription = "订单类型")]
    public int OrderType { get; set; }
    
    /// <summary>
    /// 积分
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "Integral", ColumnDescription = "积分", Length = 65, DecimalDigits=30 )]
    public decimal Integral { get; set; }
    
    /// <summary>
    /// 优惠券
    /// </summary>
    [SugarColumn(ColumnName = "Coupon", ColumnDescription = "优惠券", Length = 200)]
    public string? Coupon { get; set; }
    
    /// <summary>
    /// 服务时长
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "ServiceMin", ColumnDescription = "服务时长")]
    public int ServiceMin { get; set; }
    
    /// <summary>
    /// 租户Id
    /// </summary>
    [SugarColumn(ColumnName = "TenantId", ColumnDescription = "租户Id")]
    public long? TenantId { get; set; }
    
}
